package com.zpark.mapper;

import com.zpark.entity.Cart;
import com.zpark.vo.CartVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CartMapper {
    Integer insertCart(Cart cart);

    Integer updateNumByCid(@Param("cid") Integer cid, @Param("num") Integer num, @Param("modifiedUser") String modifiedUser, @Param("modifiedTime") Date ModifiedTime);

    Cart findByUidAndPid(@Param("uid") Integer uid, @Param("pid") Integer pid);

    List<CartVO> findVOByUid(Integer uid);

    Cart findByCid(Integer cid);

    Integer deleteByPid(@Param("cid") Integer cid, @Param("pid") Integer pid);
}
